package cn.offcn.service.impl;

import cn.offcn.mapper.EvaluateMapper;
import cn.offcn.service.EvaluateService;
import cn.offcn.utils.OAResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EvaluateServiceImpl implements EvaluateService {

    @Autowired
    private EvaluateMapper evaluateMapper;
    @Override
    public OAResult deleteEvaluateByEid(Integer eid) {
       int rows= evaluateMapper.deleteByPrimaryKey(eid);
       if(rows==1){
           return OAResult.ok(200,"删除成功");
       }
        return OAResult.ok(400,"删除失败");
    }
}
